package com.heima.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 合作商订单汇总表
 * </p>
 *
 * @author xjy
 * @since 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_collect")
public class OrderCollectVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "合作商Id")
    @TableField("owner_id")
    private Integer ownerId;

    @ApiModelProperty(value = "合作商名称")
    @TableField("owner_name")
    private String ownerName;

    @ApiModelProperty(value = "日订单收入总金额(平台端总数)")
    @TableField("order_total_money")
    private Long orderTotalMoney;

    @ApiModelProperty(value = "发生日期")
    @TableField("date")
    private LocalDate date;

    @ApiModelProperty(value = "分成总金额")
    @TableField("total_bill")
    private Integer totalBill;

    @ApiModelProperty(value = "当日点位营收")
    @TableField("node_amount")
    private Integer nodeAmount;

    @TableField("node_id")
    private Long nodeId;

    @ApiModelProperty(value = "点位")
    @TableField("node_name")
    private String nodeName;

    @ApiModelProperty(value = "订单数")
    @TableField("order_count")
    private Integer orderCount;

    @ApiModelProperty(value = "分成比例")
    @TableField("ratio")
    private Integer ratio;


}
